//
//  CinemaHGTableViewCell.m
//  个人项目(豆瓣元旦作业)
//
//  Created by dllo on 16/1/4.
//  Copyright © 2016年 guoguo. All rights reserved.
//

#import "CinemaHGTableViewCell.h"

@implementation CinemaHGTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell{
    
    self.imageView1 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imageView1];
    
    self.label1 = [[UILabel alloc] init];
    [self.contentView addSubview:_label1];
    
    self.label2 = [[UILabel alloc] init];
    [self.contentView addSubview:_label2];
    
    self.label3 = [[UILabel alloc] init];
    [self.contentView addSubview:_label3];
    
    
}

- (void)layoutSubviews{
    
    _imageView1.frame = CGRectMake(5, 5, 364, 190);
    
    _label1.frame = CGRectMake(12, 5, 300, 50);
    _label1.font = [UIFont systemFontOfSize:22];
    
    _label2.frame = CGRectMake(12, 80, 300, 50);
    _label2.numberOfLines = 2;
    
    _label3.frame = CGRectMake(12, 150, 200, 40);
    
    
    [super layoutSubviews];
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
